package com.practice2.practice;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {

   @Test
    public void testUser() {
        ClassPathXmlApplicationContext applicationContext =
                new ClassPathXmlApplicationContext(
                        "user.xml");
        User user = applicationContext.getBean("user", User.class);
        User user02 = applicationContext.getBean("user02", User.class);

        System.out.println(user);
        System.out.println(user02);

        user.show();
        user02.show();

    }
}
